package com.czk.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.czk.springcloud.entity.CommonResult;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/12/25 22:10
 */
public class CustomBlockHandler {
    public static CommonResult handlerException(BlockException blockException) {
        return new CommonResult(444, "按客户自定义的global exception=====1");
    }
    public static CommonResult handlerException2(BlockException blockException) {
        return new CommonResult(444, "按客户自定义的global exception======2");
    }
}
